package com.higgins.eventtracking.server.dataModel;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.higgins.eventtracking.client.dto.BodyStatsDTO;
import com.higgins.eventtracking.client.dto.HealthEventDTO;

@PersistenceCapable
public class BodyStats {
	@SuppressWarnings("unused")
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private Date timestamp;
	
	@Persistent
	private Double weight;
	
	@Persistent
	private Double fatPercentage;
	
	@Persistent
	private Double waterPercentage;

	@Persistent
	private Double musclePercentage;

	@Persistent
	private Integer fatCalipers;

	public BodyStats(BodyStatsDTO dto)	{
		this.timestamp = dto.getTimestamp();
		this.weight = dto.getWeight();
		this.fatPercentage = dto.getFatPercentage();
		this.waterPercentage = dto.getWaterPercentage();
		this.musclePercentage = dto.getMusclePercentage();
		this.fatCalipers = dto.getFatCalipers();
		
	}
	public BodyStats()	{
		
	}
	public void setTimestamp(Date timestamp)	{
		this.timestamp = timestamp;
	}
	public Date getTimestamp()	{
		return timestamp;
	}
	public void setWeight(Double weight)	{
		this.weight = weight;
	}
	public Double getWeight()	{
		return weight;
	}
	public void setFatPercentage(Double fatPercentage)	{
		this.fatPercentage = fatPercentage;
	}
	public Double getFatPercentage()	{
		return fatPercentage;
	}
	public void setWaterPercentage(Double waterPercentage)	{
		this.waterPercentage = waterPercentage;
	}
	public Double getWaterPercentage()	{
		return waterPercentage;
	}	
	public void setMusclePercentage(Double musclePercentage)	{
		this.musclePercentage = musclePercentage;
	}
	public Double getMusclePercentage()	{
		return musclePercentage;
	}
	public void setFatCalipers(Integer fatCalipers)	{
		this.fatCalipers = fatCalipers;
	}
	public Integer getFatCalipers()	{
		return fatCalipers;
	}
}
